package exception;

public class FinallyDemo {
    public static void main(String[] args) {
        String line = null;
        try {
            line = "";
            System.out.println(line.length());
            return;
        }catch (NullPointerException e){
            System.out.println("出错了");
        }
        finally {
            System.out.println("我是finally!!!");
        }
        System.out.println("执行完了");
    }
}
